package com.richard.springcloud.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.richard.springcloud.feign.PaymentFeignService;

@RestController
public class PaymentFeignController {
	@Resource
	private PaymentFeignService paymentFeignService;
	
	@GetMapping("/consumer/payment/{id}")
	public Object get(@PathVariable Long id) {
		Object resp = paymentFeignService.getPaymentInfo(id);
		return resp;
	}
}
